package org.chen.model.repository;

import org.chen.model.domain.Users;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author: 陈亮
 * @Date: 2019/3/24 14:10
 */
@Repository
public interface UsersRepository extends JpaRepository<Users, Integer> {

    Users findByAccount(String account);

    Users findByAccountAndPassword(String account, String password);
}
